<template>
<div class="cardfox">
    <div class="card" :style="{width:`${width}%`, height:`${height}%`}">
        <p class="heading">
            Popular this month
        </p>
        <p>Powered By</p>
        <p>Uiverse</p>
    </div>
    <div class="card-after" :style="{width:`${width}%`, height:`${height-5}%`}"></div>
</div>
</template>

<script>
export default {
    name:'homeCard',
    data() {
        return {
            width: 80,
            height: 80
        }
    }
}

</script>
<style scoped lang="scss">
.cardfox{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card {
  position: relative;
  background:url("https://gmedia.playstation.com/is/image/SIEPDC/ps5-games-gt7-hub-image-block-02-en-10mar22?$600px--t$");
  background-size:100% 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 12px;
  gap: 12px;
  border-radius: 8px;
  cursor: pointer;
  color: white;
  z-index:999;
}
.card-after {
  // width: 80%;
  // height: 80%;
  content: "";
  z-index: 1;
  position: fixed;
  left: 10% !important;
  top: 5% !important;
  inset: 0;
  background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100% );
  transform: translate3d(0, 0, 0) scale(0.95);
  filter: blur(30px);
}

.heading {
  font-size: 20px;
  text-transform: capitalize;
  font-weight: 700;
}

.card p:not(.heading) {
  font-size: 14px;
}

.card p:last-child {
  color: #e81cff;
  font-weight: 600;
}

.card:hover::before {
  transform: rotate(-90deg) scaleX(1.34) scaleY(0.77);
}

</style>